what is the purpose of rituals